/* ------------------------------------------------------------------------
	Author: SlopeTracker (http://www.pluginexpert.com)
	Version: 1.0
------------------------------------------------------------------------- */
var stSocialMediaGlobal = {
    loadPowerBtn:function() {
        jQuery(document).ready(function() {
            var html = '<div id="footerBtn"><div id="powerBy">';
                html += '';
                html += '</div></div>';
            jQuery('#stcontainer').append(html);
        });        
    },
    loadHelpBtn:function() {
        jQuery(document).ready(function() {
            jQuery("#helpBtn a[rel^='prettyPhoto']").prettyPhoto({
                theme:'facebook',
                keyboard_shortcuts: false
            });
            var html = '<div id="helpBtn">';
                html += '<a href="javascript:">';
                html += '<span></span>';
                html += '</a>';
                html += '</div>';
            jQuery('#footerBtn').append(html);
            jQuery('#helpBtn').click(function() {
                var url = location.href;
                url = url.split('?');
                url = url[0]+'?page=stSocialMediaToolbox';
                jQuery.prettyPhoto.loadPage('help', '', url);
            });
        });

    }
};

jQuery(document).ready(function() {
    
    stSocialMediaGlobal.loadPowerBtn();
    stSocialMediaGlobal.loadHelpBtn();
    
});